<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo (C("SYS_TITLE")); ?></title>
<link href="/wwyl/Public/Admin/css/style.css" rel="stylesheet" type="text/css" />
<link href="/wwyl/Public/Admin/css/page.css" rel="stylesheet" type="text/css" />
<style>
.file {width:102px;height:34px;opacity:0;filter:alpha(opacity=0);cursor:pointer;}
<!--权限样式-->
#wrap a{text-decoration:none; color:#000;}
#wrap a:hover{ color:#CCC;}
#wrap{ width:94%; height:auto; overflow:hidden; margin:20px auto; padding:10px 20px; border:1px solid #ccc;}
#wrap .add-app{ display:block; width:100px; height:20px; line-height:20px; text-align:center; background:#670768; color:#fff; border-radius:4px;}
#wrap .app{ padding:5px; border:1px solid #f6f6f6; border-radius:4px; width:1000px;}
#wrap .app p{ height:20px; line-height:20px;}
#wrap .app p strong{ font-size:20px; color:#0b99d8}
#wrap .app dl{ margin:10px 0; border:1px solid #f6f6f6; height:auto; overflow:hidden;border-radius:4px;}
#wrap .app dl dt{ display:block; height:25px; line-height:25px; background:#e6e6fa; text-indent:25px;}
#wrap .app dl dt strong{ font-size:14px; color:#61a1fa;}
#wrap .app dl dd{ margin:5px; display:block; height:18px;; width:185px; line-height:18px; text-align:left;  float:left; font-size:16px;} 
</style>

<!--编辑器-->
<script type="text/javascript" src="/wwyl/Public/Admin/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/wwyl/Public/Admin/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/wwyl/Public/Admin/ueditor/ueditor.all.min.js"></script>

<!---->
<script language="JavaScript" src="/wwyl/Public/Admin/js/jquery.js"></script>
<script type="text/javascript">
	$(function(){	
		//顶部导航切换
		$(".nav li a").click(function(){
			$(".nav li a.selected").removeClass("selected")
			$(this).addClass("selected");
		})	
	})	
	
	$(function(){	
		//导航切换
		$(".menuson li").click(function(){
			$(".menuson li.active").removeClass("active")
			$(this).addClass("active");
		});
		
		$('.title').click(function(){
			var $ul = $(this).next('ul');
			$('dd').find('ul').slideUp();
			if($ul.is(':visible')){
				$(this).next('ul').slideUp();
			}else{
				$(this).next('ul').slideDown();
			}
		});
	})	
	
	$(document).ready(function(){
	  $(".click").click(function(){
	  $(".tip").fadeIn(200);
	  });
	  
	  $(".tiptop a").click(function(){
	  $(".tip").fadeOut(200);
	});
	
	  $(".sure").click(function(){
	  $(".tip").fadeOut(100);
	});
	
	  $(".cancel").click(function(){
	  $(".tip").fadeOut(100);
	});
	
	});
	
	//tabl 切换
	$(document).ready(function(e) {
		$('#sel li').click(function(){
			$(".tab-front").removeClass("tab-front").addClass("tab-back");
			$('#sel li a').removeClass();	
			$(this).find('a').attr('class','selected');
			$(this).removeClass("tab-back").addClass("tab-front");
			var i = $(this).index();
			$(".tabbody-div").hide();
			$(".tabbody-div").eq(i).show();
		});
	});
</script>

</head>

<body>
<div class="formbody">
  <div class="formtitle"><span>基本信息</span></div>
  <form action="<?php echo U('Category/editDo');?>" method="post" enctype="multipart/form-data">
    <ul class="forminfo">
      <li>
        <label>分类名称</label>
        <input name="name" type="text" class="dfinput" value="<?php echo ($edit['name']); ?>"/>
        <i>标题不能超过30个字符</i></li>
      <li>
        <label>English</label>
        <input name="english" type="text" class="dfinput"  value="<?php echo ($edit['english']); ?>"/>
        <i>English标题不能超过30个字符</i></li>
      <li>
          <label>缩略图</label>
          <input type="file" name="pic" value="上传图片"/>
		  <?php if( $edit['pic'] != '' ): ?><img src="/<?php echo ($edit['pic']); ?>" width="50" height="40"><?php endif; ?>
      </li>
      <li>
        <label>分类排序</label>
        <input name="sort" type="text" class="dfinput" value="<?php echo ($edit['sort']); ?>" style="width:40px;"/>
        <i>请输入小于5位的整数！  数字越大越往前排</i></li>
     <li>
        <label>页面</label>
        <cite>
        <input name="onepage" type="radio" value="1" <?php if($edit['onepage'] == 1): ?>checked="checked"<?php endif; ?> />
        单页面&nbsp;&nbsp;&nbsp;&nbsp;
        <input name="onepage" type="radio" value="0" <?php if($edit['onepage'] == 0): ?>checked="checked"<?php endif; ?>/>
        多页面 </cite> </li>     
      <li>
        <label>分类显示</label>
        <cite>
        <input name="lock" type="radio" value="1" <?php if($edit['lock'] == 1): ?>checked="checked"<?php endif; ?> />
        显示&nbsp;&nbsp;&nbsp;&nbsp;
        <input name="lock" type="radio" value="0" <?php if($edit['lock'] == 0): ?>checked="checked"<?php endif; ?> />
        隐藏 </cite> </li>        
      <li>
        <label>标题</label>
        <input name="title" type="text" class="dfinput" value="<?php echo ($edit['title']); ?>"/>
        <i>标题不能超过300个字符</i></li>
      <li>
        <label>关键字</label>
        <input name="keywords" type="text" class="dfinput" value="<?php echo ($edit['keywords']); ?>"/>
        <i>多个关键字用 ， 隔开不能超过400个字符</i></li>
      <li>
        <label>描述</label>
        <textarea name="description" class="textinput"><?php echo ($edit['description']); ?></textarea>
        <i>标题不能超过500个字符</i></li>
      <li>
        <label>URL</label>
        <input name="url" type="text" class="dfinput" value="<?php echo ($edit['url']); ?>"/>
        <i>URL跳转连接 请使用内置U方法  <?php echo U('Index/index');?></i></li>
      <li>
        <label>&nbsp;</label>              
        <input type="hidden" name="pid" value="<?php echo ($edit['pid']); ?>">
        <input type="hidden" name="id" value="<?php echo ($edit['id']); ?>">
        <input type="hidden" name="file" value="<?php echo ($edit['pic']); ?>">        
        <input type="submit" class="btn" value="确认保存"/>
      </li>
    </ul>
  </form>
</div>
</body>
</html>